<template>
  <div>
    <!-- 弹框
         el-dialog
             :visible.sync=boolean  true:打开弹框  false:关闭弹框
             title:标题
             默认插槽：内容
             具名插槽（footer）:底部按钮

    -->

    <el-button @click="$refs.add.show = true">打开弹框</el-button>
    <Add ref="add" />
  </div>
</template>
<script>
import Add from './components/add.vue'
export default {
  components: {
    Add
  },
  data() {
    return {}
  }
}
</script>
<style></style>
